﻿using DocumentFormat.OpenXml.Wordprocessing;
using Magicodes.ExporterAndImporter.Core;
using System;
using System.Collections.Generic;
using System.Text;

namespace NP.BPMReportPlatform.Reports.OrderMaterialDetail.Dtos
{
    public class OrderDetailTonUnEnoughDto
    {
        /// <summary>
        /// 销售公司
        /// </summary>
        [ImporterHeader(Name = "销售公司")]
        [ExporterHeader("销售公司")]
        public string SalesCompany { get; set; }

        /// <summary>
        /// 销售大区
        /// </summary>
        [ImporterHeader(Name = "销售大区")]
        [ExporterHeader("销售大区")]
        public string SalesRegion { get; set; }

        /// <summary>
        /// 客户
        /// </summary>
        [ImporterHeader(Name = "客户")]
        [ExporterHeader("客户")]
        public string CustomerCode { get; set; }

        /// <summary>
        /// 客户名称
        /// </summary>
        [ImporterHeader(Name = "客户名称")]
        [ExporterHeader("客户名称")]
        public string CustomerName { get; set; }

        /// <summary>
        /// 订单状态(未过账)
        /// </summary>
        [ImporterHeader(Name = "订单状态(未过账)")]
        [ExporterHeader("订单状态(未过账)")]
        public decimal? UnPostWeightTon { get; set; }

        /// <summary>
        /// 订单状态(未清)
        /// </summary>
        [ImporterHeader(Name = "订单状态(未清)")]
        [ExporterHeader("订单状态(未清)")]
        public decimal? OutstandWeightTon { get; set; }

        /// <summary>
        /// 未交货重量-吨
        /// </summary>
        [ImporterHeader(Name = "未交货重量-吨")]
        [ExporterHeader("未交货重量-吨")]
        public decimal? GrossWeightTon { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        [ImporterHeader(Name = "备注")]
        [ExporterHeader("备注")]
        public string Remark { get; set; }
    }

    public class UnEnoughDataSummaryDto
    {
        /// <summary>
        /// 销售大区
        /// </summary>
        public string SalesRegion { get; set; }

        /// <summary>
        /// 不满0.5T客户数
        /// </summary>
        public int UnEnoughCustomerCount { get; set; } = 0;

        /// <summary>
        /// 责任人
        /// </summary>
        public string ResponsiblePerson1 { get; set; }
        public string ResponsiblePerson2 { get; set; }
    }
}
